﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp;
using System.ComponentModel;
using PHMEE.Entities.MqttDt.CollectPara;

namespace PHMEE
{
    /// <summary>
    /// 振动通道
    /// </summary>
    public class VibChannelPara : AggregateRoot<Guid>
    {
        /// <summary>
        /// 测点id
        /// </summary>
        public Guid? PointId { get; set; }
        /// <summary>
        /// 测点名称
        /// </summary>
        public string PointName { get; set; }
        /// <summary>
        /// 通道号
        /// </summary>
        public int ChNo { set; get; }
        /// <summary>
        /// 绑定转速通道号
        /// </summary>
        public int SpeedNo { set; get; }
        /// <summary>
        /// 传感器类型（0-加速度；1-速度；2-位移）
        /// </summary>
        public int SensType { set; get; }
        /// <summary>
        /// 灵敏度系数
        /// </summary>
        public float SensCoef { set; get; }
        /// <summary>
        /// 控制恒流源状态（0-关闭；1-打开）
        /// </summary>
        public int CnstCurSrcState { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int DevId { set; get; }
        /// <summary>
        /// 是否测温
        /// </summary>
        public int IsTem { get; set; }
        /// <summary>
        /// 转差率
        /// </summary>
        public float SpeedDiffRate { get; set; }
        /// <summary>
        /// 极对数
        /// </summary>
        public int PolePairsNum { set; get; }

        ///// <summary>
        ///// 振动采集参数列表
        ///// </summary>
        public List<VibPara> VibParaList { set; get; }
        /// <summary>
        /// 系统参数表头外键
        /// </summary>
        public Guid SysParaID { get; set; }
        /// <summary>
        /// 表头
        /// </summary>
        public SysPara SysPara { get; set; }

        private VibChannelPara()
        {
            DevId = 1;
            VibParaList = new List<VibPara>();
        }

        public VibChannelPara(Guid id)
        {
            DevId = 1;
            Id = id;
            VibParaList = new List<VibPara>();
        }
    }
}

